package hu.bme.mit.rifl.business.preprocess.nodes.impl;

import hu.bme.mit.rifl.business.preprocess.nodes.CheckRepo;
import hu.bme.mit.rifl.datamodel.Order;

public class CheckRepoImpl implements CheckRepo {

	private boolean decision;

	@Override
	public Order process(Order order) {
		if (this.decision) {
			order.setState("FEASIBLE");
		} else {
			order.setState("UNFEASIBLE");
		}
		order.setStateCodes(3);
		return order;
	}

	@Override
	public void setDecision(boolean decision) {
		this.decision = decision;
	}
}
